<?php /* EL PSY CONGROO */    				  		
 echo'<meta charset="UTF-8"><div style="text-align:center;padding:60px 0;font-size:16px;"><h2 style="font-size:60px;margin-bottom:32px;">傻逼不要扒皮</h2>抱歉，沒有找到您需要的内容！！</div>';      				 	
 die();    		  	   
 ?>
{if $zbp->Config('San_Rabbit')->p_ad1}
	<div class="hads padding0 marginb20">
		{$zbp->Config('San_Rabbit')->pad1}
	</div>
{/if}
<article>
	<div class="post_tit">
		<h1>{$article.Title}</h1>
		<div class="info">
			<span>时间：{$article.Time('Y-m-d')}</span><span>作者：{$article.Author.Name}</span><span>分类：<a href="{$article.Category.Url}" title="{$article.Category.Name}" target="_blank">{$article.Category.Name}</a></span><span>浏览：{$article.ViewNums}</span><span>评论：{$article.CommNums}</span>
		</div>
	</div>
    <div class="content">
		{$article.Content}
	</div>
    <div class="statement">文章版权声明：除非注明，否则均为<span class="red">{$name}</span>原创文章，转载或复制请以超链接形式并注明出处。</div>
	{if $article.Tags}
		<div class="tags"> 相关标签：{foreach $article.Tags as $tag}<a href="{$tag.Url}" rel="tag">{$tag.Name}</a>{/foreach}</div>
	{/if}	  
	<div class="info-pre-next">
		{if $article.Prev}
			<p>上一篇:<a href="{$article.Prev.Url}">{$article.Prev.Title}</a></p>
		{/if}
		{if $article.Next}
			<p>上一篇:<a href="{$article.Next.Url}">{$article.Next.Title}</a></p>
		{/if}
    </div>  
	{if $zbp->Config('San_Rabbit')->p_ad2}
		<div class="hads2 padding0">
			{$zbp->Config('San_Rabbit')->pad2}
		</div>
	{/if}
	<div class="article_related">
		<div class="tit"><h5>相关推荐</h5><hr></div>
		<div class="related_body">
			<ul>
			{$cid=$article.Category.ID}
				{$array = GetList(10,$cid)}
				{if $array}
					{php}
						foreach(GetList(10,$cid) as $related){
					{/php}
					 <li><a href="{$related.Url}" title="{$related.Title}" target="_blank">{$related.Title}</a></li>
					{php}
					}
					{/php}
				{else}
					<li>暂无相关推荐</li>
				{/if}
			</ul>
		</div>
	</div>
	
	{if $zbp->Config('San_Rabbit')->p_ad3}
		<div class="hads2 padding0">
			{$zbp->Config('San_Rabbit')->pad3}
		</div>
	{/if}
	<div class="pinglun">
		{if !$article.IsLock}
			{template:comments}
		{/if}
	</div>
	
	<div class="article_related">
		<div class="tit"><h5>猜你喜欢</h5><hr></div>
		<div class="main_body relatedbody">
			<ul class="post">
			{$array=GetList('5',null,null,null,null,null,array('is_related'=>$article->ID));}

				{if $array}
					{php}
						foreach($array as $related){
					{/php}
					<li class="single-mode">
	<div class="thumb">
		<a href="{$related.Url}" title="链接到 {$related.Title}">
			{if isset(Thumb::Thumbs([$related->Metas->listimg], 150, 115, 1, true)[0])}
				{php}$src=Thumb::Thumbs([$related->Metas->listimg], 150, 115, 1, true)[0];{/php}
				<img src="{$src}" alt="{$related.Title}" />
			{elseif isset($related.Thumbs(150,115,1)[0])}
				<img src="{$related.Thumbs(150,115,1)[0]}" alt="{$related.Title}" />
			{else}
				{php}
					$randimg=rand(1,5);
					$src = $host.'zb_users/theme/San_Rabbit/style/img/'.$randimg.'.jpg';
					$src = Thumb::Thumbs([$src], 150, 115, 1, true)[0];
				{/php}
				<img src="{$src}" alt="{$related.Title}" />	
			{/if}
		</a>
	</div>
	<div class="info">
		<div class="info-limit">
			<h3> 
				<a href="{$related.Url}" title="链接到 {$related.Title}">
					{$related.Title}
				</a>
			</h3>
			{php}$description = preg_replace('/[\r\n\s]+/', ' ', trim(SubStrUTF8(TransferHTML($related->Intro,'[nohtml]'),81)).'...');{/php}
			<p class="desc">
				{$description}
			</p>
		</div>
		<div class="meta">
			<div class="tags">
				<a href="{$related.Category.Url}" title="链接到 {$related.Category.Name}">{$related.Category.Name}</a>
				{if $related.Tags}
					{php}$i = 0;{/php}
					{foreach $related.Tags as $key=>$tag}
						{if $i==2}
							{php}break;{/php}
						{/if}
						<a target="_blank" class="metetag" href="{$tag.Url}" rel="tag">{$tag.Name}</a>
						{php}$i++;{/php}		
					{/foreach}
				{/if}
			</div>
			<div class="time" title="{$related.Time('Y年m月d日 H:i:s')}"><i class="iconfont icon-shijian2"></i>{$related.Time('Y年m月d日')}</div>
			<a class="search-topic" href="{$related.Url}"><i class="iconfont icon-pinglun5"></i>{$related.ViewNums}</a>
			<a class="comment-topic" href="{$related.Url}"><i class="iconfont icon-chakan1"></i>{$related.CommNums}</a>
		</div>
	</div>
</li>
					{php}
					}
					{/php}
				{else}
					
				{/if}
			</ul>
		</div>
	</div>			

	
	
</article>